// 物流请请求
import request,{Method} from '@/libs/api.js'

// 修改物流公司信息
export function updateLogistics (params) {
    return request({
      url: '/store/logistics/updateLogistics',
      method: Method.PUT,
      data: params
    });
}

// 根据ID删除物流公司信息
export function deleteLogistics (id) {
  return request({
    url: `/store/logistics/deleteLogistics/${id}`,
    method: Method.DELETE,
  });
}

// 根据参数获取Sku赠品
export function addLogistics (params) {
    return request({
      url: '/store/logistics/addLogistics',
      method: Method.POST,
      data: params
    });
}

// 根据参数获取Sku赠品
export function getManagerLogisticsByPage (params) {
    return request({
      url: '/store/logistics/getManagerLogisticsByPage',
      method: Method.POST,
      data: params
    });
}